Optimal. Leaf size=126 \[ \frac{\tan ^3(c+d x)}{3 a^8 d}+\frac{4 i \tan ^2(c+d x)}{a^8 d}-\frac{31 \tan (c+d x)}{a^8 d}-\frac{80 i}{d \left (a^8+i a^8 \tan (c+d x)\right )}+\frac{16 i}{d \left (a^4+i a^4 \tan (c+d x)\right )^2}+\frac{80 i \log (\cos (c+d x))}{a^8 d}+\frac{80 x}{a^8} \]
[Out]
________________________________________________________________________________________
Rubi [A] time = 0.0768581, antiderivative size = 126, normalized size of antiderivative = 1., number of steps used = 3, number of rules used = 2, integrand size = 24, \(\frac{\text{number of rules}}{\text{integrand size}}\) = 0.083, Rules used = {3487, 43} \[ \frac{\tan ^3(c+d x)}{3 a^8 d}+\frac{4 i \tan ^2(c+d x)}{a^8 d}-\frac{31 \tan (c+d x)}{a^8 d}-\frac{80 i}{d \left (a^8+i a^8 \tan (c+d x)\right )}+\frac{16 i}{d \left (a^4+i a^4 \tan (c+d x)\right )^2}+\frac{80 i \log (\cos (c+d x))}{a^8 d}+\frac{80 x}{a^8} \]
Antiderivative was successfully verified.
[In]
[Out]
Rule 3487
Rule 43
Rubi steps
\begin{align*} \int \frac{\sec ^{12}(c+d x)}{(a+i a \tan (c+d x))^8} \, dx &=-\frac{i \operatorname{Subst}\left (\int \frac{(a-x)^5}{(a+x)^3} \, dx,x,i a \tan (c+d x)\right )}{a^{11} d}\\ &=-\frac{i \operatorname{Subst}\left (\int \left (-31 a^2+8 a x-x^2+\frac{32 a^5}{(a+x)^3}-\frac{80 a^4}{(a+x)^2}+\frac{80 a^3}{a+x}\right ) \, dx,x,i a \tan (c+d x)\right )}{a^{11} d}\\ &=\frac{80 x}{a^8}+\frac{80 i \log (\cos (c+d x))}{a^8 d}-\frac{31 \tan (c+d x)}{a^8 d}+\frac{4 i \tan ^2(c+d x)}{a^8 d}+\frac{\tan ^3(c+d x)}{3 a^8 d}+\frac{16 i}{d \left (a^4+i a^4 \tan (c+d x)\right )^2}-\frac{80 i}{d \left (a^8+i a^8 \tan (c+d x)\right )}\\ \end{align*}
Mathematica [B] time = 1.38642, size = 537, normalized size = 4.26 \[ \frac{\sec (c) \sec ^{11}(c+d x) (\cos (6 (c+d x))+i \sin (6 (c+d x))) (120 i d x \sin (2 c+d x)+87 \sin (2 c+d x)+180 i d x \sin (2 c+3 d x)-96 \sin (2 c+3 d x)+180 i d x \sin (4 c+3 d x)+45 \sin (4 c+3 d x)+60 i d x \sin (4 c+5 d x)-44 \sin (4 c+5 d x)+60 i d x \sin (6 c+5 d x)+3 \sin (6 c+5 d x)+180 d x \cos (2 c+3 d x)+66 i \cos (2 c+3 d x)+180 d x \cos (4 c+3 d x)-75 i \cos (4 c+3 d x)+60 d x \cos (4 c+5 d x)+50 i \cos (4 c+5 d x)+60 d x \cos (6 c+5 d x)+3 i \cos (6 c+5 d x)+180 i \cos (2 c+3 d x) \log (\cos (c+d x))+3 \cos (2 c+d x) (80 i \log (\cos (c+d x))+80 d x-71 i)+\cos (d x) (240 i \log (\cos (c+d x))+240 d x-119 i)+180 i \cos (4 c+3 d x) \log (\cos (c+d x))+60 i \cos (4 c+5 d x) \log (\cos (c+d x))+60 i \cos (6 c+5 d x) \log (\cos (c+d x))-120 \sin (d x) \log (\cos (c+d x))-120 \sin (2 c+d x) \log (\cos (c+d x))-180 \sin (2 c+3 d x) \log (\cos (c+d x))-180 \sin (4 c+3 d x) \log (\cos (c+d x))-60 \sin (4 c+5 d x) \log (\cos (c+d x))-60 \sin (6 c+5 d x) \log (\cos (c+d x))+120 i d x \sin (d x)-101 \sin (d x))}{12 a^8 d (\tan (c+d x)-i)^8} \]
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A] time = 0.12, size = 107, normalized size = 0.9 \begin{align*} -31\,{\frac{\tan \left ( dx+c \right ) }{d{a}^{8}}}+{\frac{ \left ( \tan \left ( dx+c \right ) \right ) ^{3}}{3\,d{a}^{8}}}+{\frac{4\,i \left ( \tan \left ( dx+c \right ) \right ) ^{2}}{d{a}^{8}}}-80\,{\frac{1}{d{a}^{8} \left ( \tan \left ( dx+c \right ) -i \right ) }}-{\frac{80\,i\ln \left ( \tan \left ( dx+c \right ) -i \right ) }{d{a}^{8}}}-{\frac{16\,i}{d{a}^{8} \left ( \tan \left ( dx+c \right ) -i \right ) ^{2}}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [A] time = 1.24267, size = 288, normalized size = 2.29 \begin{align*} -\frac{\frac{3 \,{\left (1680 \, \tan \left (d x + c\right )^{6} - 9744 i \, \tan \left (d x + c\right )^{5} - 23520 \, \tan \left (d x + c\right )^{4} + 30240 i \, \tan \left (d x + c\right )^{3} + 21840 \, \tan \left (d x + c\right )^{2} - 8400 i \, \tan \left (d x + c\right ) - 1344\right )}}{21 \, a^{8} \tan \left (d x + c\right )^{7} - 147 i \, a^{8} \tan \left (d x + c\right )^{6} - 441 \, a^{8} \tan \left (d x + c\right )^{5} + 735 i \, a^{8} \tan \left (d x + c\right )^{4} + 735 \, a^{8} \tan \left (d x + c\right )^{3} - 441 i \, a^{8} \tan \left (d x + c\right )^{2} - 147 \, a^{8} \tan \left (d x + c\right ) + 21 i \, a^{8}} - \frac{\tan \left (d x + c\right )^{3} + 12 i \, \tan \left (d x + c\right )^{2} - 93 \, \tan \left (d x + c\right )}{a^{8}} + \frac{240 i \, \log \left (i \, \tan \left (d x + c\right ) + 1\right )}{a^{8}}}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [A] time = 3.00845, size = 616, normalized size = 4.89 \begin{align*} \frac{480 \, d x e^{\left (10 i \, d x + 10 i \, c\right )} +{\left (1440 \, d x - 240 i\right )} e^{\left (8 i \, d x + 8 i \, c\right )} +{\left (1440 \, d x - 600 i\right )} e^{\left (6 i \, d x + 6 i \, c\right )} +{\left (480 \, d x - 440 i\right )} e^{\left (4 i \, d x + 4 i \, c\right )} +{\left (240 i \, e^{\left (10 i \, d x + 10 i \, c\right )} + 720 i \, e^{\left (8 i \, d x + 8 i \, c\right )} + 720 i \, e^{\left (6 i \, d x + 6 i \, c\right )} + 240 i \, e^{\left (4 i \, d x + 4 i \, c\right )}\right )} \log \left (e^{\left (2 i \, d x + 2 i \, c\right )} + 1\right ) - 60 i \, e^{\left (2 i \, d x + 2 i \, c\right )} + 12 i}{3 \,{\left (a^{8} d e^{\left (10 i \, d x + 10 i \, c\right )} + 3 \, a^{8} d e^{\left (8 i \, d x + 8 i \, c\right )} + 3 \, a^{8} d e^{\left (6 i \, d x + 6 i \, c\right )} + a^{8} d e^{\left (4 i \, d x + 4 i \, c\right )}\right )}} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-2)] time = 0., size = 0, normalized size = 0. \begin{align*} \text{Exception raised: AttributeError} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [B] time = 1.21734, size = 304, normalized size = 2.41 \begin{align*} -\frac{2 \,{\left (\frac{240 i \, \log \left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - i\right )}{a^{8}} - \frac{120 i \, \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) + 1 \right |}\right )}{a^{8}} - \frac{120 i \, \log \left ({\left | \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 1 \right |}\right )}{a^{8}} + \frac{220 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{6} - 93 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{5} - 684 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{4} + 190 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3} + 684 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 93 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 220 i}{{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} - 1\right )}^{3} a^{8}} + \frac{-500 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{4} - 2144 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{3} + 3384 i \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right )^{2} + 2144 \, \tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - 500 i}{a^{8}{\left (\tan \left (\frac{1}{2} \, d x + \frac{1}{2} \, c\right ) - i\right )}^{4}}\right )}}{3 \, d} \end{align*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]